home *** CD-ROM | disk | FTP | other *** search
/ Interactive Media Design Review 1999 / Interactive Media Design Review 1999.iso / pc / Demos / Bombardier_PC / BSCRIPTS.CST / 00120_Script_120 < prev    next >
Text File  |  1999-04-25  |  2KB  |  44 lines

  1. -- ⌐ 1998 @radical.media, inc. & Concurrent New Media Group, L.L.C.
  2. -- Developed for Bombardier, Inc.
  3. --
  4. -- All programming developed by: 
  5. -- Robert Fabricant, Valerie Valoueva, Ossi Shaked, 
  6. -- Henry Sauvageot, Chris Howell & Chris Girand
  7. --
  8. -- Use of this code by parties other than @radical.media, inc. or their
  9. --agents 
  10. -- without the express written consent of @radical.media, inc. AND Concurrent 
  11. -- New Media Group, L.L.C. is strictly prohibited.
  12. ------------------------------------------------------
  13.  
  14.  
  15. on exitFrame
  16.   global gSelct,gImage, gRtrnPln,gTourCast,NumOfQTVRMenuItems, menuController,gQTVRmenuEnabled
  17.   
  18.   set qtvrPlaneSprNum = getSpriteNumFromMemberName("qtvranchor")+1
  19.   set range = NumOfQTVRMenuItems - 1
  20.   set spriteCastNum = the castnum of sprite qtvrPlaneSprNum
  21.   set gRtrnPln="EXT"
  22.  
  23.   --select the exterior button
  24.   
  25.   if gSelct<> qtvrPlaneSprNum+range then 
  26.     set gSelct = qtvrPlaneSprNum+range
  27.     set gImage = the castnum of sprite gSelct 
  28.     set the castnum of sprite qtvrPlaneSprNum+range to gImage+2*range
  29.   end if
  30.   
  31.   --  set up QTVR menu with cockpit selected
  32.   repeat with i=qtvrPlaneSprNum to qtvrPlaneSprNum+range
  33.     puppetSprite i, true
  34.   end repeat
  35.   deselect menuController
  36.   sendSprite (103,#mouseEnter) --as if mouse rolled over "cockpit" menu item
  37.   set gQTVRmenuEnabled = TRUE
  38.   sendsprite(103,#mouseUp) --as if mouse clicked on "cockpit" menu item
  39.   sendsprite(103,#resetRolledOver) --as if mouse rolled off "cockpit" menu item
  40.   repeat with i=qtvrPlaneSprNum to qtvrPlaneSprNum+range
  41.     set the visible of sprite i to true
  42.   end repeat
  43.   
  44. end